package beans;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
public class ArticleCommande {

	@EmbeddedId
	private ArticleCommandePK pk = new ArticleCommandePK();
	@Column(nullable = false)
	private int quantite;

	public Article getArticle() {
		return pk.getArticle();
	}

	public void setArticle(Article article) {
		this.pk.setArticle(article);
	}

	public Commande getCommande() {
		return pk.getCommande();
	}

	public void setCommande(Commande commande) {
		this.pk.setCommande(commande);
	}

	public int getQuantite() {
		return quantite;
	}

	public void setQuantite(int quantite) {
		this.quantite = quantite;
	}

}
